<%--
 *  File:    EmployeeInfo.jsp
 *  @Author: Langerwang 
 *  Date:    2001/12/10
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.EmployeeInfo");  
  String strModuleName = "OGM";
  String privilegeCode = "10103,L102";
%>
  

  
<%
  HashMap CurUserInfo = (HashMap)session.getAttribute("userinfo");
  String strCurOrgName = (String)CurUserInfo.get("orgname");
  Integer nCurOrgId = (Integer)CurUserInfo.get("orgid");
  if(nCurOrgId == null)
  {
    nCurOrgId = new Integer(-1234567);
  }   
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title>EmployeeInfo</title>
<PageFlow:CheckPageFlow pageName="employeeinfo"/>
<%
  HashMap employeeInfo = (HashMap)pageContext.getAttribute("emplinfo");
  HashMap officeAddr = (HashMap)pageContext.getAttribute("officeaddr");
  HashMap homeAddr = (HashMap)pageContext.getAttribute("homeaddr");
  HashMap glhash = (HashMap)pageContext.getAttribute("glhash");

  if(homeAddr == null)
  {
    homeAddr = new HashMap();  
  }      
  if(employeeInfo == null)
  {
    employeeInfo = new HashMap();
  }   
  if(officeAddr == null)
  {
    officeAddr = new HashMap();
  }  

  cat.debug("The employeeInfo is :" + employeeInfo);
  cat.debug("The homeAddr is :" + homeAddr);
  cat.debug("The officeAddr is :" + officeAddr);
%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../css/<%= strLanguageCode %>/main.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
  <tr> 
      <td valign="top"> 
        
      <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="3">
        <tr> 
          <td colspan="4" class="deepblue-left"> <img src="../../images/<%= strLanguageCode %>/quote.gif"> 
            <%= label.getLabelName("L_BasicInfo") + label.getLabelName("L_Colon") %> </td>
        </tr>
        <tr>
            <td width="106" class="td-text"><%= label.getLabelName("L_OwnerOrg") + label.getLabelName("L_Colon") %> </td>
            <td >
               &nbsp;<oval:write name="emplinfo" property="orgname"/>
            </td>
           <td class="td-text" width="106"><%= label.getLabelName("L_ParentEmp") + label.getLabelName("L_Colon") %> </td>
          <td>
             &nbsp;<oval:write name="emplinfo" property="parentemployeename"/>
          </td>
        </tr>
        <tr>
          <td width="106" class="td-text"><%= label.getLabelName("L_EmployeeCode") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="employeecode"/></td>
          <td class="td-text" width="106" ><%= label.getLabelName("L_DefaultDeptName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="deptname"/></td>
        </tr>
        <tr> 
          <td width="106" class="td-text"><%= label.getLabelName("L_EmployeeName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="employeename"/></td>
          <td width="106" class="td-text"> <%= label.getLabelName("L_EmployeeNameEN") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="firstname"/>&nbsp;<oval:write name="emplinfo" property="lastname"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_GenderName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="gendername"/></td>
          <td class="td-text" width="106" ><%= label.getLabelName("L_TitleName") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="jobtitlename"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_EducationalLevel") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="educationlevelname"/></td>
          <td class="td-text" width="106" ><%= label.getLabelName("L_MarriageStatusName") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="marriagestatusname"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_Birthday") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="birthday"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_EntryDate") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="entrydate"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_IDNumber") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="idcardnumber"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_PrivateBankAccount") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="privatebankaccount"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_DateLastUpdate") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="datelastupdated"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_LeaveDate") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="leavedate"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_StatusName") + label.getLabelName("L_Colon") %></td>
          <td>&nbsp;<oval:write name="emplinfo" property="statusname"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_GLAccount") + label.getLabelName("L_Colon") %></td>
          <td width="228" >
          &nbsp;<oval:write name="glhash" property="accountname"/>
         <%if(glhash.get("accountcode")!=null){%>(<oval:write name="glhash" property="accountcode"/>)<%}%>
          </td>



        </tr>
        <tr>
          <td colspan="4" class="deepblue-left"><img src="../../images/<%= strLanguageCode %>/quote.gif">
            <%= label.getLabelName("L_ContactMethod") + label.getLabelName("L_Colon") %></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_Telephone") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="officephone"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_Fax") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="faxnumber"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_HomePhone") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="homephone"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_MobilePhone") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="emplinfo" property="mobilephone"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_Email") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="email"/></td>
          <td class="td-text" width="106" ><%= label.getLabelName("L_BPNumber") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="emplinfo" property="bpnumber"/></td>
        </tr>
        <tr> 
          <td colspan="4" class="deepblue-left"><img src="../../images/<%= strLanguageCode %>/quote.gif"> 
            <%= label.getLabelName("L_HomeAddress") + label.getLabelName("L_Colon") %></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_CountryName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="homeaddr" property="countryname"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_RegionName") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="homeaddr" property="regionname"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_CityName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="homeaddr" property="cityname"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_ZipCode") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="homeaddr" property="zipcode"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_AddressLine1") + label.getLabelName("L_Colon") %></td>
          <td colspan="3" >&nbsp;<oval:write name="homeaddr" property="addressline1"/></td>
        </tr>
        <tr> 
          <td class="deepblue-left" colspan="4"><img src="../../images/<%= strLanguageCode %>/quote.gif"> 
            <%= label.getLabelName("L_OfficeAddress") + label.getLabelName("L_Colon") %></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_CountryName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="officeaddr" property="countryname"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_RegionName") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="officeaddr" property="regionname"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_CityName") + label.getLabelName("L_Colon") %></td>
          <td >&nbsp;<oval:write name="officeaddr" property="cityname"/></td>
          <td class="td-text" width="106"><%= label.getLabelName("L_ZipCode") + label.getLabelName("L_Colon") %></td>
          <td width="228" >&nbsp;<oval:write name="officeaddr" property="zipcode"/></td>
        </tr>
        <tr> 
          <td class="td-text" width="106"><%= label.getLabelName("L_AddressLine1") + label.getLabelName("L_Colon") %></td>
          <td colspan="3" >&nbsp;<oval:write name="officeaddr" property="addressline1"/></td>
        </tr>
      </table>
      </td>
    </tr>
    <tr> 
      
    <td class="td_center"> 
      <table width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td class="summary_top"></td>
            </tr>
          </table>          
      <a onclick="history.go(-1)"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a></td>
    </tr>
</table>
</body>
</html>


